import React from 'react';
import { Provider } from 'react-redux';
import { hot } from 'react-hot-loader/root';
import Router from './router/index';
import store from '@/redux/store';
import { ConfigProvider } from 'antd';
import './assets/css/app';
import './assets/css/common';
import 'moment/locale/zh-cn';
import zhCN from 'antd/lib/locale/zh_CN';

class App extends React.Component {
	render() {
		return (
			<ConfigProvider locale={zhCN}>
				<Provider store={store}>
					<Router />
				</Provider>
			</ConfigProvider>
		);
	}
}

export default hot(App);
